﻿using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace Himp.Erp.EntityFrameworkCore;

public class ErpHttpApiHostMigrationsDbContext : AbpDbContext<ErpHttpApiHostMigrationsDbContext>
{
    public ErpHttpApiHostMigrationsDbContext(DbContextOptions<ErpHttpApiHostMigrationsDbContext> options)
        : base(options)
    {

    }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        base.OnModelCreating(modelBuilder);

        modelBuilder.ConfigureErp();
    }
}
